package models

import (
	"gorm.io/gorm"
)

type UserModel struct {
	DB *gorm.DB `inject:"-"`
}

func NewUserModel() *UserModel {
	return &UserModel{}
}
func (u *UserModel) Info() string {
	c := &NoticeContextModel{}
	u.DB.Table("kc_notice_context").Where("id=?", 1).First(c)
	return c.NoticeContext
}
